<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>todos5</title>
    <style>
        * {
            box-sizing: border-box;
        }

        body {
            background-color: #f5f5f5;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .caption {
            margin-top: 50px;
            font-size: 10rem;
            font-weight: bold;
            color: rgb(219, 199, 237);
        }

        .container {
            border: none;
            box-shadow: 0 0 4px 2px #dfdfdf;
            width: 100%;
            max-width: 400px;
        }

        .input {
            width: 100%;
            border: none;
            display: block;
            padding: 1rem 2rem;
            outline-color: rgb(219, 199, 237);
            font-size: 1.5rem;
        }

        .input::placeholder {
            color: #dfdfdf;
        }

        .list {
            margin: 0;
            padding: 0;
            list-style-type: none;
        }

        .list li {
            background-color: white;
            border-top: 1px solid #dfdfdf;
            padding: 1rem 2rem;
            font-size: 1.5rem;
        }

        .list li.completed {
            color: #aaaaaa;
            text-decoration: line-through;
            cursor: pointer;
        }

        .tips {
            margin-top: 50px;
            color: #aaaaaa;
        }
    </style>

</head>

<body>

    <h1 class="caption">todos</h1>
    <form class="container">
        <input class="input" placeholder="Enter your todo" />
        <ul class="list"></ul>
    </form>
    <small class="tips">鼠标左键单击切换状态<br>右键单击删除</small>
</body>
<script src="./js/原生js代码(另外一个版本).js"></script>r